package com.qk.util.property;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: zhangchuang
 * @Date: 2025/10/08 15:35
 * @Description: 阿里云OSS参数
 */
@Data
@Component
@ConfigurationProperties(prefix = "aliyun.oss")
@SuppressWarnings("all")
public class AliyunOSSProperties {

    private String endpoint;
    private String bucketName;
    private String region = "cn-beijing"; // 默认值;
    @Value("${OSS_ACCESS_KEY_ID:}")
    private String accessKeyId;
    @Value("${OSS_ACCESS_KEY_SECRET:}")
    private String accessKeySecret;
    private String roleArn;
    private Long durationSeconds = 3600L; // 默认1小时

}
